import request from '@/api/request'

//数据列表
export function index(params) {
	return request({ url: '/app/Proorder/index',method: 'post',data: params})
}



//修改排序开关
export function updateExt(params) {
	return request({ url: '/app/Proorder/updateExt',method: 'post',data: params})
}



//添加
export function add(params) {
	return request({ url: '/app/Proorder/add',method: 'post',data: params})
}



//修改
export function update(params) {
	return request({ url: '/app/Proorder/update',method: 'post',data: params})
}


//修改工时
export function updateWorkTime(params) {
	return request({ url: '/app/Proorder/updateWorkTime',method: 'post',data: params})
}


export function getUpdateInfo(params) {
	return request({ url: '/app/Proorder/getUpdateInfo',method: 'post',data: params})
}



//删除
export function del(params) {
	return request({ url: '/app/Proorder/delete',method: 'post',data: params})
}



//查看详情
export function detail(params) {
	return request({ url: '/app/Proorder/detail',method: 'post',data: params})
}

//审核订单
export function audit(params) {
	return request({ url: '/app/Proorder/audit',method: 'post',data: params})
}

//反审订单
export function unAudit(params) {
	return request({ url: '/app/Proorder/unAudit',method: 'post',data: params})
}

//同步生产订单
export function syncOrder(params) {
	return request({ url: '/app/Proorder/sync_pro_order',method: 'post',data: params})
}
